import requests


class TokenUtil:
    # 封装一个获取用户令牌的方法
    @classmethod
    def get_token(cls):
        login_url = ""
        login_header = {"Content-Type": "application/json"}
        login_body = {}
        resp = requests.post(url=login_url, headers=login_header, json=login_body)
        token = resp.json().get("data")
        return token
